gdkdisplay.c: Fix builds without EGL
authorChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 7 Oct 2021 14:59:37 +0000 (22:59 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 8 Nov 2021 07:25:24 +0000 (15:25 +0800)
commitee45869759593b3720fb361016da0b5893e59263
treed13e3bd7d0859d93735e5de3433e5e1b2222c3c3
parent048fe84888b39199338c6e8100b4bc0797c8add5
gdkdisplay.c: Fix builds without EGL

We need to ensure that gdk_display_get_egl_display() is available even if EGL
is not enabled in the build, so that things will continue to link and work.

For builds without EGL, just return NULL.
gdk/gdkdisplay.c